//
//  JZCameraShootingToolBar.h
//  JZShortVideo
//
//  Created by liujz on 31/05/2018.
//  Copyright © 2018 liujz. All rights reserved.
//

#import <UIKit/UIKit.h>

#define CAMERA_CURRENT_BUNDLE  nil

@class JZCameraShootingToolBar;

// 类型枚举
enum {
    Photo,
    Video
    
};

typedef NSInteger ActionType;

@protocol ShootingToolBarDelegate <NSObject>

/**
 工具条按钮的代理

 @param toolBar ShootingToolBar
 @param index 按钮的值 1、取消 2、确定 3、关闭
 */
- (void)shootingToolBarAction:(JZCameraShootingToolBar *)toolBar buttonIndex:(NSInteger)index;


/**
 开始拍照

 @param toolBar 工具条
 @param type 拍摄类型
 @param value 如果是长按，会有进度值
 */
- (void)shooingStart:(JZCameraShootingToolBar *)toolBar actionType:(ActionType)type progress:(CGFloat)value;


/**
 结束拍摄

 @param toolBar 工具条
 @param type 拍摄类型
 */
- (void)shootingStop:(JZCameraShootingToolBar *)toolBar shootingType:(ActionType)type;

@end


@interface JZCameraShootingToolBar : UIView

@property (nonatomic, weak)     id<ShootingToolBarDelegate> shootingToolBarDelegate;

@property (nonatomic, assign)   BOOL editEnable;

@property (nonatomic, assign)   BOOL tapEnable;

@property (nonatomic, assign)   BOOL longPressEnable;

- (id)initWithFrame:(CGRect)frame TapEnable:(BOOL) tapEnable LongPressEnable:(BOOL) longPressEnable;

@end



